import type { RouteRecordRaw } from 'vue-router'

const order: RouteRecordRaw = {
  name: 'order',
  path: '/order',
  meta: {
    title: '订单管理',
    icon: 'icon-park-outline:jewelry',
   },
  redirect: '/order/orderList',
  children: [
    {
        name: 'order:orderList',
        path: '/order/orderList',
        meta: {
          title: '订单列表',
          icon: 'mingcute:dashboard-line',
        },
        component: () => import('~/base/views/order/orderList/index.vue'),
      },
    {
      name: 'order:complaintManagement',
      path: '/order/complaintManagement',
      meta: {
        title: '投诉管理',
        icon: 'mingcute:dashboard-line',
      },
      component: () => import('~/base/views/order/complaintManagement/index.vue'),
    },
    {
      name: 'order:reply',
      path: '/order/reply',
      meta: {
        title: '快捷回复',
        icon: 'mingcute:dashboard-line',
      },
      component: () => import('~/base/views/order/reply/index.vue'),
    },
    {
        name: 'order:orderriskControl',
        path: '/order/orderriskControl',
        meta: {
          title: '订单风控',
          icon: 'mingcute:dashboard-line',
        },
        component: () => import('~/base/views/order/orderriskControl/index.vue'),
      }
    
  ],
}

export default order
